package com.flea.hclv.util;

/**
 * @program: project
 * @description: EmailBuilder
 * @author: shiliqiang
 * @create: 2018-12-10 16:44
 * @version: 1.0
 */
public class EmailBuilder {
    private String form;

    private String formPassword;

    private String receive;

    private String title;

    private String content;

    EmailBuilder() {

    }

    public EmailBuilder receive(String receive) {
        this.receive = receive;
        return this;
    }

    public EmailBuilder formPassword(String formPassword) {
        this.formPassword = formPassword;
        return this;
    }

    public EmailBuilder form(String form) {
        this.form = form;
        return this;
    }

    public EmailBuilder title(String title) {
        this.title = title;
        return this;
    }

    public EmailBuilder content(String content) {
        this.content = content;
        return this;
    }

    public EmailUtil build() {
        return new EmailUtil(form, formPassword, receive, title, content);
    }
}
